<admintpl file="header" />
</head>
<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('CostClaim/distribution')}">分配审核权限</a></li>
            <li><a href="{:U('CostClaim/index')}">费用索赔报审表管理</a></li>
        </ul>
        <form method="post" class="form-horizontal" action="{:U('CostClaim/add_distribution')}">
            <div class="form-group">
                <label class="col-md-2 control-label">请选择编辑权用户</label>
                <input type="hidden" name="code_id" value="{:I('get.id')}"></input>
                <input type="hidden" name="level" value="{$level}"></input>
                <div class="col-md-6 EditAuthList">
                    <foreach name="users" item="u">
                        <label style="margin-left: 20px" for="bj_{$u.id}">
                            <input
                            <if condition="$u['is_check_2'] eq 1 ">checked
                                <else />
                            </if>
                                    type="checkbox" name="check1[]" id="bj_{$u.id}" value="{$u.id}"/>{$u.real_name}</label>
                    </foreach>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">请选择审核权用户</label>
                <div class="col-md-6 ExamineAuthList">
                    <foreach name="users" item="u">
                        <label style="margin-left: 20px" for="sh_{$u.id}">
                            <input
                            <if condition="$u['is_check_3'] eq 1 ">checked
                                <else />
                            </if>
                                    type="checkbox" name="check2[]" value="{$u.id}" id="sh_{$u.id}" />{$u.real_name}</label>
                    </foreach>
                </div>
            </div>
            <div class="form-actions col-md-10 col-md-offset-2">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">{:L('BACK')}</a>
            </div>
        </form>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
    <script type="text/javascript">
        /*function addexist() {

        var id = "";
        $("input[name=check1]").each(function () {
            if ($(this).attr("checked")) {
                id += $(this).val() + " ";
            }
        });

        $.ajax({
            url: "change,php",
            type: "post",
            dataType: "json",
            data: {id: id},
            success: function (data) {
                alert(data.msg);
                location.reload();
            },
            error: function () {

            }
        });
    }*/
        /*$(document).ready(function(){
            $("#fenpei").bind("click",function(){
                var id=$("#part").attr("cwid");
                change_word("{:U('ConstructionWeeklyReport/in_word')}", $(this).attr("cwid"), $(this));
            });
        })*/
        
        /*function change_word(reqUrl, id, obj){
        $.ajax({
            url     : reqUrl, 
            type    : "post", 
            dataType : "json", 
            async   :false,
            data    : {"id":id, "AJAX": 1}, 
            success : function(data){
                if(data.rtnPath){

                    var url="/index.php?g=Admin&m=News&a=download&filePath="+encodeURI(data.rtnPath)+"&fileName="+encodeURI(data.rtnName);
                    window.open(url);
                } 
            },
            error   : function(){
                alert("下载word失败");
            }
        });
     }*/
		// 功能信息Json
		var subfunction = {$auditJson};
		var deptJson = {$departmentJson};
	</script>
    <script type="text/javascript" src="__TMPL__Public/assets/js/admin/flychecked.js"></script>
    <script type="text/javascript" src="__TMPL__Public/assets/js/admin/auditflow.js"></script>
</body>
</html>